lib/repo-pull: Support queuing delta superblock requests
authorPhilip Withnall <withnall@endlessm.com>
Mon, 28 May 2018 15:55:05 +0000 (16:55 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 30 May 2018 19:57:13 +0000 (19:57 +0000)
commitf342e66c116b8731e161b03fb1abcd4504f7098e
tree26fb0af607cc72a6e08af97678c1c34c7f331c7b
parent197644c406deec76a6567e6639ebd6e06dbc1013
lib/repo-pull: Support queuing delta superblock requests

Just like all the other requests made for delta parts and objects by the
pull code, use a queue for delta superblocks. Currently this doesn’t do
any prioritisation or retries after transient failures, but it could do
in future.

This means that delta superblocks are now subject to the parallel
request limit in the fetcher, which was a problem highlighted here:
https://github.com/ostreedev/ostree/pull/1453#discussion_r168321706.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1600
Approved by: jlebon
src/libostree/ostree-repo-pull.c